package com.app.mapper;

import com.app.model.GoodsSpecsModel;
import com.app.model.UserModel;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author 16693103420
 * @since 2024-01-25
 */
@Mapper
public interface GoodsSpecsMapper extends BaseMapper<GoodsSpecsModel> {


    @Select("select u.*\n" +
            "from tb_user u\n" +
            "left join tb_business b on b.user_phone = u.phone\n" +
            "where b.id = #{businessId}")
    UserModel getUserInfoByBusiness(Integer buninessId);

}
